#ifndef _RAWSOCKETIMPL_H_
#define _RAWSOCKETIMPL_H_

#include "net/SocketDefs.hpp"
#include "net/SocketImpl.hpp"
#include "net/IPAddress.hpp"

NET_NAMESPACE_BEGIN

class CRawSocketImpl : public CSocketImpl
{
public:
	CRawSocketImpl();
	CRawSocketImpl(CIPAddress::Family family, int proto = IPPROTO_RAW);
	CRawSocketImpl(JH_SOCKET sockfd);

protected:
	void init(int af);
	void init2(int af, int proto);

	~CRawSocketImpl();
};


NET_NAMESPACE_END

#endif
